<?php

namespace App\Models\Log;

use App\Models\Conf\Agent;
use App\Models\Conf\Site;
use App\Models\Def\MainGamePlat;
use Illuminate\Database\Eloquent\Model;

class Earning extends Model
{
    public $table = 'log_earnings';

    protected $guarded = [];

    public function agent()
    {
        return $this->belongsTo(Agent::class, 'agent_id');
    }

    public function site()
    {
        return $this->belongsTo(Site::class, 'site_id');
    }

    public function plat()
    {
        return $this->belongsTo(MainGamePlat::class, 'plat_id');
    }

    public function siteScore()
    {
        return $this->belongsTo(SiteScore::class,'site_score_id');
    }

}
